package 基础篇.线程同步.同步锁;

/**
 * @author IBM CHEN ZHI KAN
 * @create 2018/7/28
 */
public class DrawThread extends Thread{
  private Account account;
  private double drawAmount;
  public DrawThread(Account account,double drawAmount){
    super();
    this.account=account;
    this.drawAmount=drawAmount;
  }
  public void run(){
    account.draw(drawAmount);
  }
}
